package pl.elka.simulator.gui.swt.menu;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Shell;

public class ExitSelection extends SelectionAdapter{	
		
	private Shell shell;
	public ExitSelection(Shell shell){
		this.shell = shell;
	}

    @Override
    public void widgetSelected(SelectionEvent e) {
        shell.getDisplay().dispose();
        System.exit(0);
    }

}
